package com.bjpowernode.dstaticproxy;

/*
    静态代理
 */
public class Test01 {
    public static void main(String[] args) {
        //创建目标对象
        XiaoHong xiaoHong = new XiaoHong();
        //创建代理对象
        Friend friend = new Friend(xiaoHong);
        //创建你自己的对象
        You you = new You(friend);

        you.makeFriend();
    }
}
